// rpcclient project rpcClientStore.go
package rpcclient

import (
	"commonAcquire"
	"fmt"
	"net/rpc/jsonrpc"
)

func PushStore(args commonAcquire.AircraftInfo) {
	client, err := jsonrpc.Dial("tcp", "192.168.2.13:54322")
	if err != nil {
		fmt.Printf("dialing:", err)
	}

	var reply int
	cal := client.Go("DataStore.SaveDB", args, &reply, nil)
	if cal.Error != nil {
		fmt.Printf("DataStore.SaveDB error:", err)
	}
	fmt.Printf("DataStore.SaveDB: %d\n", reply)
}
